package org.budo.ocr.service.impl;

import java.io.File;

import org.budo.ocr.service.api.OcrRequest;

import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * @author lmw
 */
@Getter
@Setter
@Accessors(chain = true)
public class FileOcrRequest implements OcrRequest {
    private File file;

    public FileOcrRequest() {
    }

    public FileOcrRequest(File file) {
        this.file = file;
    }

    public FileOcrRequest(String filePath) {
        this.file = new File(filePath);
    }

    @Override
    public String toString() {
        return super.toString() + ", file=" + this.file;
    }
}